package com.app.util.file;

import java.io.File;
import java.net.URL;

import com.app.util.web.UrlUtil;

public class ResourceUtil {

	public static File getFile(String classpath) {
		URL url = ResourceUtil.class.getResource(classpath);
		if (url == null) {
			return null;
		}
		return new File(UrlUtil.UTF8.decode(url.getFile()));
	}
}
 